-
Notifications
You must be signed in to change notification settings - Fork 188
fix: resolve streaming clients hanging on security blocks (issue #355) #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: resolve streaming clients hanging on security blocks (issue #355) #356
Conversation
✅ Deploy Preview for vllm-semantic-router ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
👥 vLLM Semantic Team NotificationThe following members have been identified for the changed files in this PR and have been automatically assigned: 📁
|
@Xunzhuo @tao12345666333 @AkisAya PTAL, thanks |
can u share the demo for what it looks like in openwebui when security blocked now? |
@Xunzhuo I did, it's just above your comment |
Looks great, any demos for PII detection? |
Will do soon, i wiped out the deployment for other fixes/tests. |
@yossiovadia that's cool! can you fix the pre-commit? it is ready to go, thanks |
…-project#355) - Add streaming support to security response functions in response.go - Update CreateJailbreakViolationResponse() to return SSE format when isStreaming=true - Update CreatePIIViolationResponse() to return SSE format when isStreaming=true - Fix header consistency by using RawValue instead of Value for all headers - Update all call sites in request_handler.go to pass streaming context - Add comprehensive streaming tests to 05-jailbreak-test.py - Replace inappropriate test content with professional jailbreak testing patterns - Add TEST 5: Streaming jailbreak detection with SSE format validation - Add TEST 6: Streaming vs non-streaming consistency verification This resolves the issue where streaming clients like OpenWebUI would hang indefinitely when security violations occurred, as they expected SSE format but received JSON responses. Signed-off-by: Yossi Ovadia <[email protected]>
1438978
to
1ce14cc
Compare
This PR resolves the issue where streaming clients like OpenWebUI would hang indefinitely when security violations occurred, as they expected SSE format but received JSON responses.
Release Notes: No